package com.yunyike.mapper;

import java.util.List;

import com.yunyike.model.Coupon;

public interface CouponMapper {
    int deleteByPrimaryKey(String couponId);

    int insert(Coupon record);

    int insertSelective(Coupon record);

    Coupon selectByPrimaryKey(String couponId);
    
    List<Coupon> findCouponsByCondition(Coupon coupon);
    
    List<Coupon> findAvailiableCoupons(Coupon coupon);

    int updateByPrimaryKeySelective(Coupon record);

    int updateByPrimaryKey(Coupon record);
}